import request from "@/utils/request";

// 业务类型
export function businessApi(data) {
  return request({
    url: "/system/cockpit/selectByType",
    method: "get",
    params: data,
  });
}

// 人员情况
export function personnel(data) {
  return request({
    url: "/system/personnel/list",
    method: "get",
    params: data,
  });
}

// 项目完成效率
export function completion(data) {
  return request({
    url: "/system/cockpit/efficiency",
    method: "get",
    params: data,
  });
}

// 完成效率图表
export function efficiency(data) {
  return request({
    url: "/system/cockpit/efficiencyEcharts",
    method: "get",
    params: data,
  });
}

// 项目回款详情列表
export function payment(data) {
  return request({
    url: "/system/management/ProjectrefundId",
    method: "get",
    params: data,
  });
}

// 合同类型的占比总数
export function contractBussines(data) {
  return request({
    url: "/system/contract/contractType",
    method: "get",
    params: data,
  })
}





// 项目回款详情下拉选择
export function itemList(data) {
  return request({
    url: "/system/management/itemlist",
    method: "get",
    params: data,
  });
}

// 合同总金额和业务类型占比
export function totalApi(data) {
  return request({
    url: "/system/cockpit/distinguish",
    method: "get",
    params: data,
  });
}

// 地图展示数据
export function mapApi(data) {
  return request({
    url: "/system/cockpit/selectEchartsByAddress",
    methosd: "get",
    params: data,
  });
}

// 地图全国统计
export function statisticsApi() {
  return request({
    url: "/system/cockpit/statistics",
    method: "get",
  });
}
